import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { WorkflowDesignerComponent } from './components/workflow-designer/workflow-designer.component';
import { RepairRequestComponent } from './components/repair-request/repair-request.component';
import { WorkflowTasksComponent } from './components/workflow-tasks/workflow-tasks.component';

const routes: Routes = [
  { path: '', redirectTo: '/repair-request', pathMatch: 'full' },
  { path: 'repair-request', component: RepairRequestComponent },
  { path: 'tasks', component: WorkflowTasksComponent },
  { path: 'workflow-designer', component: WorkflowDesignerComponent },
  { path: 'workflow-designer/:id', component: WorkflowDesignerComponent },
  { path: '**', redirectTo: '/repair-request' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { } 